package cn.edu.scau.cmi.wujiaxian.exercise5;

public class Circle {
	
	double radius, area;
	public Circle() {
	}
	Circle(double r) {
		radius = r;
	}
	void setRadius(double r) {
		if (r > 0) {
			radius = r;
		}
	}
	double getRadius() {
		return radius;
	}
	double getArea() {
		area = 3.14 * radius * radius;
		return area;
	}
}
